str1 = 'How perform a left join in SQLchemy?'
print(' '.join(str1.split(' ')[::-1]))
print(' '.join(str1.split(' ')[::-1]).replace('?','') + '?')